package com.sylli.oeuf.server.object.transferable;

public class LevelUpTO extends BasedTO {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 2204377635111398997L;
	
	private int statPoint = 0;
	
	private int skillPoint = 0;
	
	public LevelUpTO add(LevelUpTO operand) {
		LevelUpTO lvl = new LevelUpTO();
		lvl.skillPoint = this.skillPoint + operand.skillPoint;
		lvl.statPoint = this.statPoint + operand.statPoint;
		return lvl;
	}
	
	public boolean isValid() {
		return (statPoint > 0) && (skillPoint > 0);
	}

	public int singleValue() {
		return statPoint + skillPoint;
	}
	
	public LevelUpTO() {
		// for flex
	}

	public int getStatPoint() {
		return statPoint;
	}

	public void setStatPoint(int statPoint) {
		this.statPoint = statPoint;
	}

	public int getSkillPoint() {
		return skillPoint;
	}

	public void setSkillPoint(int skillPoint) {
		this.skillPoint = skillPoint;
	}
	
}
